<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Inline_Style</title>
    <script src="../Vue.js" type="text/javascript"></script>
    <style>

    </style>
</head>
<body>
    <div id="app">
        <!-- CSS内联样式变量拼接 -->
        <!-- 注意px和skyblue需要用引号引起来因为它们不是变量而是value -->
        <div :style="{width:200 +'px',height:200+ 'px', background:'skyblue'}">我是内敛属性</div>
        <!-- CSS内联样式变量拼接 -->
        <div :style="active">我是内敛对象</div>
        <!-- CSS内联样式变量拼接 -->
        <div :style="[active, active2]">我是内敛对象</div>
    </div>
    <script>
        let app = new Vue({
            el: "#app",
            data:{
                active:{
                	width:200 + 'px',
                    height: 200 + 'px',
                    background: 'skyblue'
                },
                active2:{
                	border: 1 + 'px solid red'
                }
            }
        })
    </script>
</body>
</html>